#ifndef CTPROXYRUNNABLE_H
#define CTPROXYRUNNABLE_H

#include "precomp.h"
#include "publicstruct.h"

class CTProxyRunnable : public QObject,public QRunnable
{
    Q_OBJECT
public:

    CTProxyRunnable(QVector<ProxyServerData> proxyVects);
    ~CTProxyRunnable();
    void run() override;
    QVector<ProxyServerData> m_proxyVects;
    QNetworkAccessManager m_manager;
    QNetworkRequest m_request;
    QNetworkReply *m_reply;
signals:
    void resultReady(const QByteArray data, const QString requestParam);
private slots:
    //void dataReceivedFromSocket(const QByteArray data, const QString requestParam);
    void onFinished(QNetworkReply *reply);
};

#endif // CTPROXYRUNNABLE_H
